package Team.Model;

import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;

import Core.Model.ClientType;
import Team.Controller.*;
import Team.View.Login.*;
import Team.View.MainFrame.*;

public class TeamModel
{
	public void initialize()
    {
        this.clientType = ClientType.TEAM;
    }
    
    public void setLoginView(TeamLoginView loginView)
    {
    	this.loginView = loginView;
    }
    
    public void setMainFrameView(TeamMainFrameView mainFrameView)
    {
        this.mainFrameView = mainFrameView;
    }
    
    public void setController(TeamController teamController)
    {
    	this.teamController = teamController;
    }
    
    public TeamLoginView getLoginView()
    {
    	return this.loginView;
    }
    
    public TeamMainFrameView getMainFramView()
    {
    	return this.mainFrameView;
    }
    
    public TeamController getController()
    {
    	return this.teamController;
    }
    
    public void setObjectInputStream(ObjectInputStream objectInputStream)
    {
    	this.objectInputStream = objectInputStream;
    }
    
    public void setObjectOutputStream(ObjectOutputStream objectOutputStream)
    {
    	this.obejctOutputStream = objectOutputStream;
    }
    
    public ObjectInputStream getObjectInputStream()
	{
		return this.objectInputStream;
	}
	
	public ObjectOutputStream getObjectOutputStream()
	{
		return this.obejctOutputStream;
	}
	
	public ClientType getClientType()
	{
		return this.clientType;
	}
	
	public Socket getSocket()
	{
		return this.socket;
	}
    
    
    private TeamLoginView loginView;
    private TeamMainFrameView mainFrameView;
    private TeamController teamController;
	
	public Socket socket;

	private ObjectInputStream objectInputStream;
	private ObjectOutputStream obejctOutputStream;
	
	private ClientType clientType;

	private String serverIp;
	private int port;
	private String ConfigureFilePath = new String("c:\\server_process_address.txt"); 
}
